package com.ruoyi.web.task;

import com.ruoyi.web.task.factory.TaskThirdpartyFactory;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 第三方 定时任务
 *
 * @author Jyl
 */
@Log4j2
@Component("thirdpartyTask")
public class TaskThirdparty
{

    @Autowired
    private TaskThirdpartyFactory taskThirdpartyFactory;

    /**
     * 更新订单信息
     */
    public void fn()
    {
        taskThirdpartyFactory.fnUpdateOrder();
    }

    /**
     * 更新 外部系统编码
     */
    public void code()
    {
        taskThirdpartyFactory.fnUpdateTnumber();
    }

    /**
     * 更新 外部系统库存信息
     */
    public void inventoryCost()
    {
        taskThirdpartyFactory.updateInventoryCost();
    }

    /**
     * 通知 外部系统下单
     */
    public void sendThirdpartyPlaceAnOrder()
    {
        taskThirdpartyFactory.sendThirdpartyPlaceAnOrder();
    }

}
